package com.itheima.pojo;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class Sku implements Serializable {

    private String id;                            //商品id
    private String sn;                            //商品条码
    private String name;                          //SKU名称
    private Integer price;                        //价格（分）
    private Integer num;                          //库存数量
    private Integer alert_num;                    //库存预警数量
    private String image;                         //商品图片
    private String images;                        //商品图片列表
    private Integer weight;                       //重量（克）
    private Date create_time;                     //创建时间
    private Date update_time;                     //更新时间
    private String spu_id;                        //SPU ID
    private Integer category_id;                  //类目ID
    private String category_name;                 //类目名称
    private String brand_name;                    //品牌名称
    private String spec;                          //规格
    private Integer sale_num;                     //销量
    private Integer comment_num;                  //评论数
    private String status;                        //商品状态 1-正常，2-下架，3-删除

    private List<Category> categories;
    private List<Brand> brands;

    public Sku() {
    }

    public Sku(String id, String sn, String name, Integer price, Integer num, Integer alert_num, String image, String images, Integer weight, Date create_time, Date update_time, String spu_id, Integer category_id, String category_name, String brand_name, String spec, Integer sale_num, Integer comment_num, String status) {
        this.id = id;
        this.sn = sn;
        this.name = name;
        this.price = price;
        this.num = num;
        this.alert_num = alert_num;
        this.image = image;
        this.images = images;
        this.weight = weight;
        this.create_time = create_time;
        this.update_time = update_time;
        this.spu_id = spu_id;
        this.category_id = category_id;
        this.category_name = category_name;
        this.brand_name = brand_name;
        this.spec = spec;
        this.sale_num = sale_num;
        this.comment_num = comment_num;
        this.status = status;
    }

    public Sku(String id, String sn, String name, Integer price, Integer num, Integer alert_num, String image, String images, Integer weight, Date create_time, Date update_time, String spu_id, Integer category_id, String category_name, String brand_name, String spec, Integer sale_num, Integer comment_num, String status, List<Category> categories, List<Brand> brands) {
        this.id = id;
        this.sn = sn;
        this.name = name;
        this.price = price;
        this.num = num;
        this.alert_num = alert_num;
        this.image = image;
        this.images = images;
        this.weight = weight;
        this.create_time = create_time;
        this.update_time = update_time;
        this.spu_id = spu_id;
        this.category_id = category_id;
        this.category_name = category_name;
        this.brand_name = brand_name;
        this.spec = spec;
        this.sale_num = sale_num;
        this.comment_num = comment_num;
        this.status = status;
        this.categories = categories;
        this.brands = brands;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getAlert_num() {
        return alert_num;
    }

    public void setAlert_num(Integer alert_num) {
        this.alert_num = alert_num;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getImages() {
        return images;
    }

    public void setImages(String images) {
        this.images = images;
    }

    public Integer getWeight() {
        return weight;
    }

    public void setWeight(Integer weight) {
        this.weight = weight;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Date getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }

    public String getSpu_id() {
        return spu_id;
    }

    public void setSpu_id(String spu_id) {
        this.spu_id = spu_id;
    }

    public Integer getCategory_id() {
        return category_id;
    }

    public void setCategory_id(Integer category_id) {
        this.category_id = category_id;
    }

    public String getCategory_name() {
        return category_name;
    }

    public void setCategory_name(String category_name) {
        this.category_name = category_name;
    }

    public String getBrand_name() {
        return brand_name;
    }

    public void setBrand_name(String brand_name) {
        this.brand_name = brand_name;
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public Integer getSale_num() {
        return sale_num;
    }

    public void setSale_num(Integer sale_num) {
        this.sale_num = sale_num;
    }

    public Integer getComment_num() {
        return comment_num;
    }

    public void setComment_num(Integer comment_num) {
        this.comment_num = comment_num;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public List<Category> getCategories() {
        return categories;
    }

    public void setCategories(List<Category> categories) {
        this.categories = categories;
    }

    public List<Brand> getBrands() {
        return brands;
    }

    public void setBrands(List<Brand> brands) {
        this.brands = brands;
    }

    @Override
    public String toString() {
        return "Sku{" +
                "id='" + id + '\'' +
                ", sn='" + sn + '\'' +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", num=" + num +
                ", alert_num=" + alert_num +
                ", image='" + image + '\'' +
                ", images='" + images + '\'' +
                ", weight=" + weight +
                ", create_time=" + create_time +
                ", update_time=" + update_time +
                ", spu_id='" + spu_id + '\'' +
                ", category_id=" + category_id +
                ", category_name='" + category_name + '\'' +
                ", brand_name='" + brand_name + '\'' +
                ", spec='" + spec + '\'' +
                ", sale_num=" + sale_num +
                ", comment_num=" + comment_num +
                ", status='" + status + '\'' +
                ", categories=" + categories +
                ", brands=" + brands +
                '}';
    }
}
